<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户菜单</title>
    <link rel="stylesheet" href="/js/bootstrap.min.css">
    <script src="/js/jquery-3.2.1.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(function () {

            getParam();

            function getUrlParam(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
                var r = window.location.search.substr(1).match(reg);  //匹配目标参数
                if (r != null)
                    return unescape(r[2]);
                return null; //返回参数值
            };

            function getParam() {
                var userId = getUrlParam("userId");
                $("#adda").attr("href", "UpdateUserPass.html?userId=" + userId);
                $("#edde").attr("href", "/kProduct/ShowUserProduct.html?userId=" + userId);
            };
        });
    </script>
</head>
<body>
<div class="jumbotron text-center">
    <h1>用户菜单</h1>
</div>

<div class="container">
    <div class="row">
        <div class="col-sm-4">
            <a href="#" class="text-muted" id="adda">修改密码</a>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-4">
            <a href="#" class="text-muted" id="edde">查看商品</a>
        </div>
    </div>
</div>

</body>
</html>